﻿@{
    ViewBag.Title = "定位";
    Layout = "~/Views/Shared/_layoutPersonal.cshtml";
}
@Styles.Render("~/Content/css/preLoaction")

<section class="About">
    <img src="/images/superstore01.png" class="AboutImg">
    <div class="AboutEW">
        <p><img src="/images/location_icon.png" class="locationImg"><span class="LocationText">正在定位</span></p>
    </div>
</section>

<script>
    window.onload = function () {
        AddressMgr.setWXAddr(null, null, Number(@ViewBag.Latitude), Number(@ViewBag.Longtitude));
        locationPoint('@Url.Content("~/Home/Index")');
        LocationWait();
    };
    //定位的时间
    var waitSeconds = 3;
    function LocationWait() {
        var text = "正在定位 ";
        for (var j = 0; j < waitSeconds ; j++) {
            text += ".";
        }
        $(".LocationText").text(text);
        window.setTimeout("LocationWait()", 1000);
    }
</script>